import axios from "../shopaxios/index"; //导入自己定义过后的axios

//export default  这种写法是一次性导入很多个
// 下面是可以分别导出很多个
export const loginService = (username, password) => {
        return axios.post("admin/login", {
            user_name: username,
            password: password
        }).catch(err => console.log(err))
    }
    //管理元退出接口
export const logoutService = () => axios.get("admin/signout").catch(err => console.log(err))